fight off temptation

Translations
бороться с искушением
He had to fight off temptation to eat the whole cake.
Ему пришлось бороться с искушением съесть весь торт.